package com.mdlib.helper.model.entity;

import com.google.gson.annotations.SerializedName;
import com.mdlib.helper.utils.MDAppUtils;

import java.io.Serializable;

/**
 * Created by librabin on 16/11/25.
 */

public class UserEntity implements Serializable {


    @SerializedName("session_id")
    public String sessionId;

    @SerializedName("id")
    private String uid;
    @SerializedName("nick_name")
    private String nickName;

    @SerializedName("user_pic_url")
    private String avatarUrl;

    private String status;

    private int type;

    @SerializedName("user_pic")
    private int userPic;

    private String sex;

    private String phone;

    private String money;

    @SerializedName("is_run")
    private int isRun;


    public UserEntity(String name, String phoneNumber) {
        this.nickName = name;
        this.phone = phoneNumber;

    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getUserPic() {
        return userPic;
    }

    public void setUserPic(int userPic) {
        this.userPic = userPic;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public int getIsRun() {
        return isRun;
    }

    public void setIsRun(int isRun) {
        this.isRun = isRun;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public String getAvatarUrl() {
        return MDAppUtils.getImageSrc(avatarUrl);
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }
}
